#define _CRT_SECURE_NO_WARNINGS

#include "string.h"

namespace bit
	{
		const size_t string::npos = -1;
		size_t string::size()const
		{
			return _size;
		}
		char& string::operator[](size_t i)
		{
			assert(i < _size);
			return _str[i];
		}
		const char& string::operator[](size_t i)const
		{
			assert(i < _size);
			return _str[i];
		}
		string::iterator string::begin()
		{
			return _str;
		}

		string::iterator string::end()
		{
			return _str + _size;
		}
		string::const_iterator string::begin()const
		{
			return _str;
		}
		string::const_iterator string::end()const
		{
			return _str + _size;
		}
	}